console.log(1000);
for (let n = 1; n <= 100; n++) {
    for (let m = 1; m <= 10; m++) {
        console.log(`${n} ${m}`);
    }
}
